home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-11 | 3.1 KB | 131 lines | [TEXT/MPS ] |
- ;
- ; File: MachineExceptions.a
- ;
- ; Copyright: © 1984-1994 by Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Version: Universal Interfaces 2.0a3 ETO #16, MPW prerelease. Friday, November 11, 1994.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
-
- IF &TYPE('__MACHINEEXCEPTIONS__') = 'UNDEFINED' THEN
- __MACHINEEXCEPTIONS__ SET 1
-
-
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- ; include 'ConditionalMacros.a' ;
- ; Machine Dependent types for PowerPC:
- MachineInformationPowerPC RECORD 0
- CTR ds UnsignedWide
- LR ds UnsignedWide
- PC ds UnsignedWide
- CR ds.l 1
- XER ds.l 1
- MSR ds.l 1
- sizeof EQU 36
- ENDR
-
- RegisterInformationPowerPC RECORD 0
- R0 ds UnsignedWide
- R1 ds UnsignedWide
- R2 ds UnsignedWide
- R3 ds UnsignedWide
- R4 ds UnsignedWide
- R5 ds UnsignedWide
- R6 ds UnsignedWide
- R7 ds UnsignedWide
- R8 ds UnsignedWide
- R9 ds UnsignedWide
- R10 ds UnsignedWide
- R11 ds UnsignedWide
- R12 ds UnsignedWide
- R13 ds UnsignedWide
- R14 ds UnsignedWide
- R15 ds UnsignedWide
- R16 ds UnsignedWide
- R17 ds UnsignedWide
- R18 ds UnsignedWide
- R19 ds UnsignedWide
- R20 ds UnsignedWide
- R21 ds UnsignedWide
- R22 ds UnsignedWide
- R23 ds UnsignedWide
- R24 ds UnsignedWide
- R25 ds UnsignedWide
- R26 ds UnsignedWide
- R27 ds UnsignedWide
- R28 ds UnsignedWide
- R29 ds UnsignedWide
- R30 ds UnsignedWide
- R31 ds UnsignedWide
- sizeof EQU 256
- ENDR
-
- FPUInformationPowerPC RECORD 0
- Registers ds.b 32 * UnsignedWide
- FPSCR ds.l 1
- Reserved ds.l 1
- sizeof EQU 264
- ENDR
-
-
- writeReference EQU 0
- readReference EQU 1
- fetchReference EQU 2
-
- MemoryExceptionInformation RECORD 0
- theArea ds.l 1
- theAddress ds.l 1
- theError ds.l 1
- theReference ds.l 1
- sizeof EQU 16
- ENDR
-
-
- unknownException EQU 0
- illegalInstructionException EQU 1
- trapException EQU 2
- accessException EQU 3
- unmappedMemoryException EQU 4
- excludedMemoryException EQU 5
- readOnlyMemoryException EQU 6
- unresolvablePageFaultException EQU 7
- privilegeViolationException EQU 8
- traceException EQU 9
- instructionBreakpointException EQU 10
- dataBreakpointException EQU 11
- integerException EQU 12
- floatingPointException EQU 13
- stackOverflowException EQU 14
- terminationException EQU 15
-
- ExceptionInfo RECORD 0
- VariantLevel0Begin EQU *
- memoryInfo ds.l 1
- sizeof EQU 4
- ENDR
-
- ExceptionInformationPowerPC RECORD 0
- theKind ds.l 1
- machineState ds.l 1
- registerImage ds.l 1
- FPUImage ds.l 1
- info ds.l 1
- sizeof EQU 20
- ENDR
-
- IF GENERATINGPOWERPC THEN
- ENDIF
- ; Note: An ExceptionHandler is NOT a UniversalProcPtr.
- ; It must be a native function pointer with NO routine descriptor.
- ; Routine for installing per-process exception handlers
- ENDIF ; __MACHINEEXCEPTIONS__
-